/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.demister.at.model;

/**
 * BlockCommand represents the command excuting in BlockFrame.
 * @author Rock
 */
public abstract class BlockCommand {

    /**
     * BlockFrame for the command
     */
    protected BlockFrame frame;
    /**
     * BlockTypeSchema for the command
     */
    protected BlockTypeSchema schema;

    /**
     * Create an instance of BlockCommand with specific BlockFrame and BlockTypeSchema.
     * @param frame the block frame
     * @param schema the type schema
     */
    protected BlockCommand(BlockFrame frame, BlockTypeSchema schema) {
        this.frame = frame;
        this.schema = schema;
    }

    /**
     * Excute the command.
     */
    public abstract void excute();
}
